package com.ccnf.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccnf.model.entity.MessagePoint;
import com.ccnf.model.mapper.MessagePointMapper;
import com.ccnf.service.MessagePointService;
import org.springframework.stereotype.Service;

@Service
public class MessagePointServiceImpl extends ServiceImpl<MessagePointMapper, MessagePoint> implements MessagePointService {

    @Override
    public Page<MessagePoint> findMessagePointByUserId(Long expoId, Long userId, Page<MessagePoint> page) {
        return page.setRecords(baseMapper.selectMessagePointByUserId(expoId, userId, page));
    }
}